#ifndef SPEED_AGENT_H

#define SPEED_AGENT_H

#include "PotentialField.h"


class SpeedAgent : public PotentialField
{
public:
	SpeedAgent();
	~SpeedAgent();

	void update(CarState& cs, const float dt);
	
	const float getRightFieldOfView();
	const float getLeftFieldOfView();
	
	void calculatePotentialForOptions(DriverOption* const options, unsigned int size);

	void setSpeed(const float s);
	void setK(const float k);
private:
	float angles[19];
	float speed;
	float k;
};


#endif
